<script setup lang="ts">
import { RouterLink, RouterView } from 'vue-router'
import HelloWorld from '../components/HelloWorld.vue'
</script>

<template>
  <header>
    <img alt="Vue logo" class="logo" src="@/assets/logo.svg" width="125" height="125" />

    <div class="wrapper">
      <HelloWorld msg="You did it!" />

      <nav>
      <!--   <RouterLink to="/AddUser">用户新增</RouterLink>
        <RouterLink to="/GetUser">用户列表</RouterLink>
        <RouterLink to="/AddRole">角色新增</RouterLink>
        <RouterLink to="/RoleList">角色列表</RouterLink>
        <RouterLink to="/AddMenu">菜单新增</RouterLink>
        <RouterLink to="/MenuList">菜单列表</RouterLink>
        <RouterLink to="/RoleMenuList">角色分配</RouterLink> -->



        <!-- <RouterLink to="/AddProductionOrder">添加生产订单</RouterLink>
        <RouterLink to="/ShowProductionOrder">显示生产订单</RouterLink>
        <RouterLink to="/TianMaterialsRequired">物料添加</RouterLink>
        <RouterLink to="/GetMaterialsRequired">物料查询</RouterLink>
        <RouterLink to="/AddMaterialRequired">物料基础信息添加</RouterLink>
        <RouterLink to="/ShowBomMain">物料基础信息列表</RouterLink>
        <RouterLink to="/EditProductionOrder">修改生产</RouterLink> -->
       <!--  <RouterLink to="/AddProductionPlanMessage">新增生产计划</RouterLink>
        <RouterLink to="/ShowProductionPlanMessage">显示生产计划</RouterLink>
        <RouterLink to="/AddMaterialRegistrationDetail">新增物料登记</RouterLink>
        <RouterLink to="/AddDispatchProductInfo">新增派工信息</RouterLink>
        <RouterLink to="/AddReportInfo">汇报信息</RouterLink>
        <RouterLink to="/AddReworkProduct">返工产品</RouterLink>
        <RouterLink to="/ShowReportInfo">汇报信息显示</RouterLink>
        <RouterLink to="/AddReworkProduct">新增返工产品</RouterLink>
        <RouterLink to="/ShowReworkProduct">返工产品列表</RouterLink> -->


         <RouterLink to="/QuerySterilizationcenter">器械显示</RouterLink>
         <RouterLink to="/Instrumentkits">器械包显示</RouterLink>
      </nav>
    </div>
  </header>

  <RouterView />
</template>

<style scoped>
header {
  line-height: 1.5;
  max-height: 100vh;
}

.logo {
  display: block;
  margin: 0 auto 2rem;
}

nav {
  width: 100%;
  font-size: 12px;
  text-align: center;
  margin-top: 2rem;
}

nav a.router-link-exact-active {
  color: var(--color-text);
}

nav a.router-link-exact-active:hover {
  background-color: transparent;
}

nav a {
  display: inline-block;
  padding: 0 1rem;
  border-left: 1px solid var(--color-border);
}

nav a:first-of-type {
  border: 0;
}

@media (min-width: 1024px) {
  header {
    display: flex;
    place-items: center;
    padding-right: calc(var(--section-gap) / 2);
  }

  .logo {
    margin: 0 2rem 0 0;
  }

  header .wrapper {
    display: flex;
    place-items: flex-start;
    flex-wrap: wrap;
  }

  nav {
    text-align: left;
    margin-left: -1rem;
    font-size: 1rem;

    padding: 1rem 0;
    margin-top: 1rem;
  }
}
</style>
